global with sharing class Dup13PopulateBatchedUsers{

WebService static String populateObject2(String[] UserIdList, String[] RoleIdList, String templateId, String bId){
      
      return templateId;
}

WebService static String populateObject(String[] UserIdList, String[] RoleIdList, String templateId, String bId){
      return templateId;
}

WebService static String[] getSelectedUsers(String batchId, String templateId)
{
   String[] bUserArray = new String[1];
   return null;
   
}

    WebService static String[] getBatchDetails(String templateId){
       String[] batchList = new String[1];
       return null;
    }
    
    //Method invoked from 'retreiveTemplates' function of 'BatchDet_AftGen_SCon' Scontrol
    WebService static String getStartEndDateTime(String batchId)
    {
           
        return null;
    }
    
    WebService static String deleteBatch(String batchId)
    {
        
        return 'Batch Deleted';
    }//end of deleteBatch(....) method
    
    WebService static String insertMergeNames(String[] checkedNames, String templateName, String templateId)
    {
        
        return 'inserted successfully.';
    }
    
    static testMethod void testPopulateBatchedUsers() 
    {
        String[] userIdList = new String[1];
        String[] roleIdList = new String[1];
        system.assertEquals('Batch Deleted',deleteBatch('batch'));
        system.assertEquals(null,getSelectedUsers('test', 'test2'));
        system.assertEquals(null, getStartEndDateTime('date'));
        system.assertEquals('inserted successfully.',insertMergeNames(userIdList, 'template', 'tId'));
        system.assertEquals('tId',populateObject(userIdList, roleIdList, 'tId', 'bId'));
        system.assertEquals(null, getBatchDetails('test'));
        system.assertEquals('tId',populateObject2(userIdList, roleIdList, 'tId', 'bId'));
    }
}